/*
*   给组件调用的接口API
*
*  */
import http from "./http";

export const userLogin = (params)=>{
    return http.request({
        url: "/api/user/login",
        method: "post",
        data:params
    });
}

export const checkOldPassword = (params)=>{
    return http.request({
        url: "/api/user/checkOldPassword",
        method: "post",
        data: params,
        headers:{
            Authorization: localStorage.getItem('token')
        }
    });
}


export const updatePassword = (params)=>{
    return http.request({
        url: "/api/user/updatePassword",
        method: "post",
        data: params,
        headers:{
            Authorization: localStorage.getItem('token')
        }
    });
}